<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>JavaScript Test for function leftTrim()</title>
<script type="text/javascript" src="../e885CheckBoxUtil.js"></script>
</head>

<body>
<p>JavaScript Tes for function doCheckBoxAllForCheckBox()</p>
<p>使用 checkBox 來點選全選, 或取消全選</p>

<form name="form" id="formId">
<table border="1">
	<tr>
		<td colspan="2"><input type="checkbox" onclick="doCheckBoxAllForCheckBox( 'formId', this )">全選</td>
	</tr>
	<tr>
		<td>1</td>
		<td><input type="checkbox" name="test">1</td>
	</tr>
	<tr>
		<td>2</td>
		<td><input type="checkbox" name="test">2</td>
	</tr>
	<tr>
		<td>3</td>
		<td><input type="checkbox" name="test">3</td>
	</tr>
	<tr>
		<td>4</td>
		<td><input type="checkbox" name="test">4</td>
	</tr>
	<tr>
		<td>5</td>
		<td><input type="checkbox" name="test">5</td>
	</tr>
	<tr>
		<td>6</td>
		<td><input type="checkbox" name="test">6</td>
	</tr>
</table>
</form>
</body>
</html>